package com.codedancer.campus.common.utils;


/**
 * 验证码生成工具
 */
public class VerificationCodeUtil {

    /**
     * 生成随机六位验证码
     *
     * @return
     */
    public static String getSixCode() {
        long codeL = System.nanoTime();
        String codeStr = Long.toString(codeL);
        return codeStr.substring(codeStr.length() - 8, codeStr.length() - 2);
    }
}
